﻿<%@ Control Language="C#"  %>
<%@ Register src="../module/Admincenter-Public-Approved.ascx" tagname="Approved" tagprefix="inal" %>
<script runat="server">
    private int Column_id=0;
    private int page_note=1;
    private int top_size=20;
    private string s_mode = "s";
    private int lang = 1;
    protected void Page_Load(object sender, EventArgs e)
    {
        Column_Id = Utils.GetQueryString("cid", 0);
        Item_Lang = Utils.GetQueryString("lang", 1);
        Album album = new Album();
        Repeater_List.DataSource = album.Album_List(Column_Id, Page_Note, Top_Size, Item_Lang,"admin");
        Repeater_List.DataBind();
    }
    public int Column_Id
    {
        get { return Column_id; }
        set { Column_id = value; }
    }
    public int Page_Note
    {
        get { return page_note; }
        set { page_note = value; }
    }
    public int Top_Size
    {
        get { return top_size; }
        set { top_size = value; }
    }
    public string S_Mode
    {
        get { return s_mode; }
        set { s_mode = value; }
    }

    public int Item_Lang
    {
        get { return lang; }
        set { lang = value; }
    }
</script>
<table class="datas">
<thead>
    <tr>
    <td width="80"> </td>
    <td class="w50">Num</td>
    <td class="w100"></td>
    <td><%=Lang.Show("Title")%></td>
    <td><%=Lang.Show("Order")%></td>
    <td><%=Lang.Show("Create_Time")%></td>
    <td class="Narrow"></td>
    <td class="Narrow"></td>
    <td class="Narrow"></td>
    </tr>
</thead>
<tbody>
<asp:Repeater runat="server" ID="Repeater_List">
<ItemTemplate>
    <tr id="TR<%#Eval("Item_Id") %>">
        <td><inal:Approved runat="server" Item_Id='<%#Utils.ToInt(Container.DataItem,"Item_Id") %>' Item_Status='<%#Utils.ToInt(Container.DataItem,"Item_Status") %>' Item_Typ="7" /></td>
        <td><code>.<%#Eval("Item_Id")%>  </code></td>
        <td><div class="img" style="background:url(../DataFile/Album/<%#Eval("Create_Time", "{0:yyyyMM/ddHHmmss}")%>_ssss.<%#Eval("Item_fileExt")%>)"></div></td>
        <td><%#Eval("Item_Title")%> <p class="column"> <%#Eval("Name")%></p></td>
        <td><code><%#Eval("Orders")%></code></td>
        <td><code><%#Eval("Create_Time", "{0:yyyy/MM/dd<br>HH-mm-ss}")%></code></td>
        <td><a href="../home/Album-View.aspx?id=<%#Eval("Item_Id") %>&lang=<%=Item_Lang %>" target="_blank"><%=Lang.Show("View")%></a></td>
        <td><a href="Album-AddEdit.aspx?id=<%#Eval("Item_Id") %>&lang=<%=Item_Lang %>"><%=Lang.Show("Edit") %></a></td>
        <td><a href="javascript:Del(<%#Eval("Item_Id") %>,7)" class="del"><%=Lang.Show("Del") %></a></td>
    </tr>
</ItemTemplate>
</asp:Repeater>
</tbody>
</table>